package com.atguigu.exercise1;

/**
 * @author : leimingchao
 * @date Date : 2021年08月22日 22:53
 */
public class Circle {

    /**
     * 半径
     */
    private double radius;

    public Circle() {
        this.radius = 1.0;
    }

    public Circle(double radius) {
        this.radius = radius;
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    public double findArea() {
        return Math.PI * radius * radius;
    }

}
